package ltd.hxya.novel.common.to.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户书架表
 * </p>
 *
 * @author hxya
 * @since 2022-09-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserBookshelf对象", description="用户书架表")
public class UserBookshelfTo implements Serializable {

    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "小说ID")
    private Long bookId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "上一次阅读的章节内容表ID")
    private Long preContentId;

    private Integer indexNum;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;



}
